<?php
namespace lib;

use rabbit\exception\ConnectException;
use rabbit\Rabbit;

require __DIR__ . '/vendor/autoload.php';
//生产
$rabbit = new Rabbit();
try {
    $rabbit->push('', '', '', '');
} catch (ConnectException $e) {
    echo $e->getMessage();
}
//消费 使用dph.php挂命运行

